home *** CD-ROM | disk | FTP | other *** search
- Path: atglab.bls.com!Alun.Champion
- From: Alun.Champion@bridge.bst.bls.com (Alun Champion)
- Newsgroups: comp.lang.c
- Subject: Re: itoa on Unix
- Date: 08 Jan 1996 15:46:30 GMT
- Organization: Computer People Inc.
- Message-ID: <ALUN.CHAMPION.96Jan8104630@g7240065.bridge.bst.bls.com>
- References: <4cra6m$pop@baloo.pipex-sa.net>
- NNTP-Posting-Host: bstfirewall.bst.bls.com
- In-reply-to: nic@pipex-sa.net's message of 8 Jan 1996 14:37:10 GMT
-
- In article <4cra6m$pop@baloo.pipex-sa.net> nic@pipex-sa.net (Nic Tjirkalli) writes:
-
- : I am using gcc 2.6.3 on linux. Ineed to convert an integer to a string.
- : I rember from my programming days in Borland C that there was a itoa
- : function to convert an interger to a string. I can find no such function,
- : though, with gcc.
-
- : I would greatly appreciate it if somebody could inform me of a simple
- : way to convert an integer to a string using gcc on unix.
-
- Certainly.
- Try:
- sprintf(string, "%d", integer);
-
- Regards
-
- -A.
- --
- | A.Champion |
-